package com.wlz.principle.lsp;

import java.util.Collection;
import java.util.HashMap;

public class Father {
    protected String role="";

    public void setRole() {
        this.role = "爸爸";
    }

    public void showRole(){
        System.out.println("我是你"+role);
    }

    public Collection doSomething(HashMap map){
        System.out.println("父类被执行...");
        return map.values();
    }
}
